import {baseRequest} from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/bi/repayment/` + url, ...arg)
export default {
	repaymentRecordPage(data) {
		return request('pageList', data, 'post')
	},
	addRepaymentRecord(data) {
		return request('add', data, 'post')
	},
	updateStatus(data) {
		return request('updateStatus', data, 'post')
	},
	importExcel(projectCode, data) {
		return request('importExcel/' + projectCode, data, 'post')
	},
	exportRepaymentRecord(data) {
		return request('export', data, 'post', {
			responseType: 'blob'
		})
	},
	batchAudit(data) {
		return request('batchAudit', data, 'post')
	},
	getFirstInfoOfMonth(data) {
		return request('getFirstInfoOfMonth', '', 'get')
	}
}
